<?php
/**
 * 产品
 */
namespace app\usercp\controller;

use app\usercp\exception\UsercpException;
use think\Request;

class Tutorial extends Usercp
{
    public function initialize() {
        parent::initialize();
        $this->service = model('site/Site', 'service');
    }

    /**
     * 发布教程
     */
    public function index(Request $request)
    {
        $lists = $this->service->where('custom_id|create_custom_id','=',$this->custom->current_id)->find();
        if(empty($lists)){
            return $this->fetch('none');
        }
        return $this->fetch('release');
    }
    
}